package com.billiards.service.impl;

import com.billiards.dao.BallMapper;
import com.billiards.dao.BulletinMapper;
import com.billiards.entity.Ball;
import com.billiards.entity.BallAppt;
import com.billiards.service.BallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BallServiceImpl implements BallService {
    @Autowired
    private BallMapper ballMapper;

    @Override
    public List<Ball> getBallList() {
        return ballMapper.getBallList();
    }

    @Override
    public List<Ball> getBallballname(String ballname) {
        return ballMapper.getBallballname(ballname);
    }

    @Override
    public int updateBall(Ball ball) {
        return ballMapper.updateBall(ball);
    }

    @Override
    public int addBall(Ball ball) {
        return ballMapper.addball(ball) ;
    }

    @Override
    public int deleteBall(Integer delId) {
        return ballMapper.deleteBall(delId);
    }
    @Override
    public List<Ball> getYesBallState(String state) {
        return ballMapper.getYesBallState(state);
    }

    @Override
    public List<Ball> getNoBallState(String state) {
        return ballMapper.getNoBallState(state);
    }


}

